package com.sangmo.fts.teacher.service;

import com.sangmo.boot.framework.plugin.dataview.crud.service.BaseViewService;
import com.sangmo.boot.framework.plugin.dataview.data.IDataViewRepo;
import com.sangmo.fts.teacher.model.ExaminationClazz;
import com.sangmo.fts.teacher.repo.ExaminationClazzRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class ExaminationClazzEntityService extends BaseViewService<ExaminationClazz> {

    @Autowired
    private ExaminationClazzRepo examinationClazzRepo;

    @Override
    protected IDataViewRepo<ExaminationClazz> getRepo() {
        return examinationClazzRepo;
    }

    public void deleteByExaminationId(Long examinationId) {
        examinationClazzRepo.deleteByExaminationId(examinationId);
    }

}
